You can start WinAgents RouterTweak from the Windows command line passing the following parameters to the program:
rtweak device_address [-n] [-u username] [-p password] [-e enable_password] [-s] [-r]
rtweak -c com_port [-u username] [-p password] [-e enable_password] [-r]
Command line parameters:
device_address - the DNS name or IP address of the device
com_port - the name of the COM port for connecting to the device.
-n - do not use the parameter from the connection history for connecting to the device.
-u username - username for authenticating on the device.
-p password - the password for authenticating on the device.
-e enable_password - the password for switching to the privileged mode.
-s - use the SSH protocol for connecting to the device (otherwise the TELNET protocol will be used).
-r - automatically retrieve the running configuration after the connection to the device is established.
-с - connect to the device via the COM port (the default port settings are used).